﻿using System.Windows;
using System.Windows.Controls;
using WebSilverlight.Web;

namespace WebSilverlight.Views
{
    public partial class CiudadPrompt : ChildWindow
    {
        #region Properties
            public CiudadWrapper Selected { get; set; }
        #endregion

        public CiudadPrompt()
        {
            InitializeComponent();
            if(this.dcCiudadContext1 == null)
				this.dcCiudadContext1 = new CiudadDomainContext();
        }
        private void SelectButton_Click(object sender, RoutedEventArgs e)
        {
            Selected = (CiudadWrapper)dataGridCiudad1.SelectedItem;
            Close();
        }
    }
}